﻿using System.ComponentModel;
using System.Web.UI.WebControls;

namespace Library.WebControls {
	public class TableCellStyle : TableItemStyle {
		[DefaultValue(0)]
		public int RowSpan { get; set; }
		[DefaultValue(0)]
		public int ColumnSpan { get; set; }


		public void CopyStyleToCell(TableCell cell) {
			cell.ControlStyle.CopyFrom(this);
			cell.RowSpan = RowSpan;
			cell.ColumnSpan = ColumnSpan;
			cell.VerticalAlign = VerticalAlign;
			cell.HorizontalAlign = HorizontalAlign;
			cell.Wrap = Wrap;
		}
	}
}